package com.example.pagehelper.bean;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.util.Date ;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @Excel(name = "userid",width = 25,orderNum = "0")
    @Column(name = "id")
    private int id;
    @Excel(name = "username",width = 25,orderNum = "0")
    private String name;
    @Excel(name = "userpwd",width = 25,orderNum = "0")
    private String password;
    @Excel(name = "userage",width = 25,orderNum = "0")
    private int age;
    @Excel(name = "userperms",width = 25,orderNum = "0")
    private String perms;



    @Excel(name = "itime",width = 25,orderNum = "0")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    @Column(name = "inserttime",nullable = false)
    private Date inserttime;
}
